package com.nodusk.timeline.util;

import com.nodusk.timeline.shiro.UserProfile;
import org.apache.shiro.SecurityUtils;

/**
 * @author 今何许
 * @date 2021-08-14 11:19
 */
public class ShiroUtil {
    public static UserProfile getProfile() {
        return (UserProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
